<?php

	/**
	 * FileMode
	 *
	 * Specifies how the operating system should open a file
	 *
	 * @package      Core
	 * @subpackage   IO
     * 
     * @license      GNU Lesser General Public Licence see LICENCE-LGPL file or http://www.gnu.org/licenses/lgpl.html
	 */
    class Core_IO_FileMode
	{
        /**
         * Open for reading only; place the file pointer at the beginning of the file
         *
         * @const	string
         */
        const READ = 'r';

        /**
         * Open for reading / writing; place the file pointer at the beginning of the file and truncate the file to zero length.
         * If the file does not exist, attempt to create it
         *
         * @const	string
         */
		const WRITE = 'wb+';

        /**
         * Open for reading / writing (appending); place the file pointer at the end of the file.
         * If the file does not exist, attempt to create it
         *
         * @const	string
         */
		const APPEND = 'ab+';
    }
